package com.aiyige.model.eshop;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhuyakun on 2018/1/29.
 */

public class DetailBackup implements Parcelable{
    Long	startDate;
    Integer	classesBooked;
    Integer	videoCount;
    Integer	durationTotal;

    public DetailBackup() {
    }

    public Long getStartDate() {
        return startDate;
    }

    public void setStartDate(Long startDate) {
        this.startDate = startDate;
    }

    public Integer getClassesBooked() {
        return classesBooked;
    }

    public void setClassesBooked(Integer classesBooked) {
        this.classesBooked = classesBooked;
    }

    public Integer getVideoCount() {
        return videoCount;
    }

    public void setVideoCount(Integer videoCount) {
        this.videoCount = videoCount;
    }

    public Integer getDurationTotal() {
        return durationTotal;
    }

    public void setDurationTotal(Integer durationTotal) {
        this.durationTotal = durationTotal;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.startDate);
        dest.writeValue(this.classesBooked);
        dest.writeValue(this.videoCount);
        dest.writeValue(this.durationTotal);
    }

    protected DetailBackup(Parcel in) {
        this.startDate = (Long) in.readValue(Long.class.getClassLoader());
        this.classesBooked = (Integer) in.readValue(Integer.class.getClassLoader());
        this.videoCount = (Integer) in.readValue(Integer.class.getClassLoader());
        this.durationTotal = (Integer) in.readValue(Integer.class.getClassLoader());
    }

    public static final Creator<DetailBackup> CREATOR = new Creator<DetailBackup>() {
        @Override
        public DetailBackup createFromParcel(Parcel source) {
            return new DetailBackup(source);
        }

        @Override
        public DetailBackup[] newArray(int size) {
            return new DetailBackup[size];
        }
    };
}
